﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/syspermissions"  prefix="p"%>


<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<title>无标题文档</title>
<link href="<%=basePath%>css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<%=basePath%>js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>

<script type="text/javascript">
$(function(){	
	//导航切换
	$(".menuson li").click(function(){
		$(".menuson li.active").removeClass("active")
		$(this).addClass("active");
	});
	
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('ul').slideUp();
		if($ul.is(':visible')){
			$(this).next('ul').slideUp();
		}else{
			$(this).next('ul').slideDown();
		}
	});
})	

function checkclasses(level){
//将角色ID写入session
	sessionStorage.setItem("levels", level);
//location.href="<%=path%>/admin/pageAdministrator.action?pageing.classes="+level;
//window.open(url,"rightFrame");
}





</script>

</head>

<body style="background:#f0f9fd;">
	<div class="lefttop"><span></span>通讯录</div>
     
    <dl class="leftmenu">
        
    <dd>
  
    <div class="title">
     
    <span><img src="<%=basePath%>images/leftico01.png" /></span>实验室管理信息
    </div>
    	<ul class="menuson">
        <li class="active"><cite></cite><a href="<%=basePath%>jsp/index.html" target="rightFrame">首页模版</a><i></i></li>
        
        <li ><cite></cite><a href="<%=basePath%>admin/pageLaborary.action" target="rightFrame">实验室信息</a><i></i></li>
      
         
        <li><cite></cite><a href="<%=basePath%>admin/pageEquipment.action" target="rightFrame">设备信息</a><i></i></li>
        
        
        <li><cite></cite><a href="<%=basePath%>admin/pageClass.action" target="rightFrame">设备类别</a><i></i></li>
      
        </ul>   
      
    </dd>
     
    
    <dd>
    
    <p:permissions menu="memberlist,laborarylist,testmemberlist,teacherlist,managerlist">
    <div class="title">
    <span><img src="<%=basePath%>images/leftico02.png" /></span>成员管理信息
    </div>
    <ul class="menuson">
     <p:permissions menu="testmemberlist">
    <li><cite></cite><a href="<%=basePath%>admin/pageAdministrator.action?pageing.classes=4" onclick="checkclasses(4)"target="rightFrame">检测人员信息</a><i></i></li>
        </p:permissions>
        <p:permissions menu="laborarylist">
        <li><cite></cite><a href="<%=basePath%>admin/pageAdministrator.action?pageing.classes=3" onclick="checkclasses(3)" target="rightFrame">实验室技术员信息</a><i></i></li>
        </p:permissions>   
        <p:permissions menu="teacherlist">
        <li><cite></cite><a href="<%=basePath%>admin/pageAdministrator.action?pageing.classes=2" onclick="checkclasses(2)" target="rightFrame">教师信息</a><i></i></li>
        </p:permissions>
         <p:permissions menu="managerlist">
        <li><cite></cite><a href="<%=basePath%>admin/pageAdministrator.action?pageing.classes=1" onclick="checkclasses(1)"target="rightFrame">管理员信息</a><i></i></li>
       </p:permissions>
        <p:permissions menu="equimentclassmessage">
        <li><cite></cite><a href="<%=basePath%>admin/pageClass.action" target="rightFrame">设备类别</a><i></i></li>
        </p:permissions>
        </ul>     
    
    </p:permissions>
    </dd> 
        <p:permissions menu="editorlist,repairlist,repairedlist">
    <dd><div class="title"><span><img src="<%=basePath%>images/leftico03.png" /></span>编辑</div>
    <ul class="menuson">
    <p:permissions menu="repairlist">
        <li><cite></cite><a href="<%=basePath%>admin/pageRepairs.action?status=1"target="rightFrame">报修申请</a><i></i></li>
   </p:permissions>
   <p:permissions menu="repairedlist">
        <li><cite></cite><a href="<%=basePath%>admin/pageRepairs.action?status=2"target="rightFrame">历史维修信息</a><i></i></li>
   </p:permissions>
    </ul>    
    </dd>  
    </p:permissions>
      <p:permissions menu="memberlist,backgroundmanagement,rightlist,rolelist">
    </p:permissions>
        <p:permissions menu="memberlist,backgroundmanagement,rightlist,rolelist">
    <dd><div class="title"><span><img src="<%=basePath%>images/leftico04.png" /></span>后台管理</div>
    <ul class="menuson">
       <li><cite></cite><a href="<%=basePath%>admin/pageSysright.action" target="rightFrame">权限信息 </a><i></i></li>
         <li><cite></cite><a href="<%=basePath%>admin/pageSysrole.action" target="rightFrame">角色信息 </a><i></i></li>
    </ul>
    </dd>   
    </p:permissions>
     <!-- -------------------------------------实验室管理人员----------------------------------------------------------- -->
      <p:permissions menu="usermanager,userequiment,userlaborary,userrepaired">
    <dd><div class="title"><span><img src="<%=basePath%>images/leftico04.png" /></span>实验室信息 </div>
    <ul class="menuson">
       <p:permissions menu="userequiment">
       <li><cite></cite><a href="<%=basePath%>admin/pageuserEquipment.action?pageing.uerlabid=${administrators.laboraryid}" target="rightFrame">设备信息 </a><i></i></li>
       </p:permissions>
       <p:permissions menu="userlaborary">
       <li><cite></cite><a href="<%=basePath%>admin/pageuserAdministrator.action?pageing.classes=3&pageing.uerlabid=${administrators.laboraryid}" onclick="checkclasses(3)" target="rightFrame">实验技术员信息 </a><i></i></li>
       </p:permissions>
       <p:permissions menu="userrepaired">
        <li><cite></cite><a href="<%=basePath%>admin/pageRepairs.action?status=1&pageing.uerlabid=${administrators.laboraryid}"target="rightFrame">报修申请</a><i></i></li>
       </p:permissions>
    </ul>
    </dd>   
     </p:permissions>
    </dl>
     
</body>
</html>
